package com.ellwood.IPGuard.common.core.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @ProjectName: IPGuard-boot
 * @PackageName: com.ellwood.IPGuard.common.core.exception
 * @ClassName: ErrorCode
 * @Description: // 错误响应码
 * @Author: Ellwood
 * @CreateDate: 2024/9/25 - 下午4:08
 * @Version: V1.0.0
 */
@Getter
@AllArgsConstructor
public enum ErrorCode {

    UNAUTHORIZED(401, "还未授权，不能访问"),
    FORBIDDEN(403, "没有权限，禁止访问"),
    REFRESH_TOKEN_INVALID(400, "refresh_token 已失效"),
    INTERNAL_SERVER_ERROR(500, "服务器异常，请稍后再试")
    ;

    private final int code;
    private final String msg;

}
